let nev = document.querySelector('.nev')
let code = document.querySelector('.code')
let account = document.querySelector('.account')
let header = document.querySelector('.header')
nev.addEventListener('click', function (e) {
    if (e.target.innerHTML === '扫码登录') {
        code.style.display = 'block'
        account.style.display = 'none'
        header.style.display = 'none'
        document.querySelector('.active').classList.remove('active')
        e.target.classList.add('active')

    }
    if (e.target.innerHTML === '账户登录') {
        code.style.display = 'none'
        account.style.display = 'block'
          header.style.display = 'none'
        document.querySelector('.active').classList.remove('active')
        e.target.classList.add('active')

    }
    if (e.target.innerHTML === '短信登录') {
        account.style.display = 'none'
       header.style.display = 'block'
       code.style.display = 'none'

    }
    if (e.target.innerHTML === '账号登录') {
         account.style.display = 'block'
       header.style.display = 'none'
       code.style.display = 'none'
    }
})


